package com.hcx.base.thread.pool;

import java.util.concurrent.ThreadFactory;

/**
 * @author huangchengxiao
 * @date 2024/3/27 12:45
 */
public class MyThreadFactory implements ThreadFactory {
    @Override
    public Thread newThread(Runnable r) {
        System.out.println("开始创建线程了");
        return new Thread(r,"我是自定义的线程工厂");
    }


}
